import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);


export default new Vuex.Store({
    state:{
        city:{nm:'北京',id:9}
    },
    mutations:{
        CITY_INFO(state,payload){
            state.city.nm=payload.nm;
            state.city.id=payload.id;
        }
    }
})